home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / lib / X11 / config / gnu.cf < prev    next >
Encoding:
Text File  |  2006-12-20  |  13.4 KB  |  554 lines

  1. XCOMM platform:  $XFree86: xc/config/cf/gnu.cf,v 1.12 2003/11/24 02:02:26 dawes Exp $
  2. XCOMM $XdotOrg: util/cf/gnu.cf,v 1.3 2005/02/09 04:09:54 gisburn Exp $
  3.  
  4. #ifndef OSName
  5. #define OSName            DefaultOSName
  6. #endif
  7.  
  8. #ifndef OSVendor
  9. #define OSVendor        /**/
  10. #endif
  11. #ifndef OSMajorVersion
  12. #define OSMajorVersion        DefaultOSMajorVersion
  13. #endif
  14. #ifndef OSMinorVersion
  15. #define OSMinorVersion        DefaultOSMinorVersion
  16. #endif
  17. #ifndef OSTeenyVersion
  18. #define OSTeenyVersion        DefaultOSTeenyVersion
  19. #endif
  20.  
  21. #ifndef HasGhostScript
  22. # define HasGhostScript YES
  23. #endif
  24. #ifndef BuildPDFdocs
  25. # define BuildPDFdocs NO
  26. #endif
  27.  
  28. #ifndef GnuBinUtilsMajorVersion
  29. # define GnuBinUtilsMajorVersion    DefaultGnuBinUtilsMajorVersion
  30. #endif
  31.  
  32. XCOMM operating system:  OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
  33. XCOMM libc:    (GnuCLibMajorVersion./**/GnuCLibMinorVersion./**/GnuCLibTeenyVersion)
  34. XCOMM binutils:    (GnuBinUtilsMajorVersion)
  35.  
  36. #define HasDevRandom        NO
  37. #define PollDevRandom        NO
  38.  
  39. /* Path setup. */
  40. # ifndef NothingOutsideProjectRoot
  41. #  define NothingOutsideProjectRoot    NO
  42. # endif
  43. # if !defined(NothingOutsideProjectRoot) || !NothingOutsideProjectRoot
  44. #  define SystemManDirectory    /usr/share/man
  45. # endif
  46.  
  47. /* Default GCC options. */
  48. # ifndef DefaultGcc2OptimizeOpt
  49. #  define DefaultGcc2OptimizeOpt    -O2
  50. # endif
  51.  
  52. # define HasPam            YES
  53.  
  54. # if !defined(NothingOutsideProjectRoot) || !NothingOutsideProjectRoot
  55. #  define XAppLoadDir        EtcX11Directory/app-defaults
  56. # define XFileSearchPathDefault    Concat4(EtcX11Directory/%L/%T/%N%C,%S:EtcX11Directory/%l/%T/%N%C,%S:EtcX11Directory/%T/%N%C,%S:EtcX11Directory/%L/%T/%N%S:EtcX11Directory/%l/%T/%N%S:EtcX11Directory/%T/%N%S):Concat4($(LIBDIR)/%L/%T/%N%C,%S:$(LIBDIR)/%l/%T/%N%C,%S:$(LIBDIR)/%T/%N%C,%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S)
  57. /* the relative symlink created by this rule causes problems for us */
  58. # define InstallAppDefFiles    YES
  59. # ifdef InstallAppDefFiles
  60. #  if InstallAppDefFiles
  61. #   define InstallAppDefaultsLong(file,class)                @@\
  62. InstallNamedTarget(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class)
  63. #  else
  64. #   define InstallAppDefaultsLong(file,class)                @@\
  65. InstallNamedTargetNoClobber(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class)
  66. #  endif
  67. # endif /* InstallAppDefFiles */
  68. # endif /* !defined(NothingOutsideProjectRoot) || !NothingOutsideProjectRoot */
  69.  
  70. # define SharedLibXdmGreet    NO
  71. # define LinkGLToUsrInclude    NO
  72. # define LinkGLToUsrLib        NO
  73. # define FSUseSyslog        YES
  74.  
  75. # define DriverManSuffix       4x
  76. # define DriverManDir          $(MANSOURCEPATH)4
  77.  
  78. # define MiscManSuffix         7x
  79. # define MiscManDir            $(MANSOURCEPATH)7
  80.  
  81. # define ProjectManSuffix    x
  82.  
  83. # define DebianMaintainer      YES
  84.  
  85. # ifdef DebianMaintainer
  86.  
  87. #  ifndef XorgCustomVersion
  88. #   define XorgCustomVersion        "Debian"
  89. #  endif
  90. #  ifndef BuilderEMailAddr
  91. #   define BuilderEMailAddr        "debian-x@lists.debian.org"
  92. #  endif
  93.  
  94. #  define XFree86Devel            YES
  95. #  define InstallXinitConfig        YES
  96. #  define InstallXdmConfig        YES
  97. #  define InstallFSConfig        YES
  98. #  define DebuggableLibraries        YES
  99. #  define ForceNormalLib        YES
  100. #  define SharedLibFont            NO
  101. #  define SharedLibGlu            YES
  102. #  define NormalLibGlu            YES
  103. #  define BuildFontCache        YES
  104.  
  105. #  define BuildAllSpecsDocs        NO
  106. #  ifndef BuildSpecsDocs
  107. #   define BuildSpecsDocs        YES
  108. #  endif
  109. #  define SpecsDocDirs            BDF CTEXT FSProtocol GL ICCCM ICE PM \
  110.                     Render SM X11 XDMCP XIM XLFD XProtocol \
  111.                     Xaw Xext Xi Xmu Xserver Xt Xv XvMC \
  112.                     i18n rstart xfs xterm xtrans
  113. #  define XkbServerDefines        -DNOISY
  114. #  define BuildHtmlManPages        NO
  115.  
  116. #  define DontPreprocessManPages    NO
  117.  
  118. /* We have a local patch that defines PicLibraryTarget(), instead of upstream's
  119.  * method. */
  120. #  define StaticNeedsPicForShared    NO
  121.  
  122. /* Some libraries changed compilation method from static to shared and they do not
  123.  * ship header files.
  124.  * Temporary revert the build to static until all the changes will be investigated
  125.  * properly
  126.  */
  127. #  define SharedLibXau                  YES
  128. #  define SharedLibXdmcp                YES
  129. #  define NormalOldX                    NO
  130. #  define DebugOldX                     NO
  131. #  define SharedOldX                    NO
  132. #  define SharedLibDmx                  YES
  133. #  define SharedLibGLw                  NO
  134. #  define SharedLibFont                 NO
  135. #  define SharedLibFontEnc              NO
  136. #  define SharedLibXfontcache           NO
  137. #  define BuildFreetypeDlModule         NO
  138.  
  139. #  define KernelVersionInBanner        YES
  140.  
  141. /* We don't want XRX. */
  142. #  define BuildPlugin            NO
  143.  
  144. /* The TT/Meltho fonts are all under non-free licences, except for BitStream
  145.  * Vera, which is provided by an external package anyway. */
  146. #  define BuildTrueTypeFonts        NO
  147. #  define BuildBethMarduthoFonts    NO
  148.  
  149. #  define MakeDllModules        YES
  150.  
  151. /* All the following are fulfilled by Build-Depends. */
  152. #  define BuildRman            NO
  153. #  define RmanCmd            /usr/bin/rman
  154. #  define RmanOptions            /**/
  155. #  define HasTk                YES
  156. #  define TkLibDir            /usr/lib
  157. #  define TkIncDir            /usr/include
  158. #  define TkLibName            tk8.4
  159. #  define XF86SetupUsesStaticTk        NO
  160. #  define HasTcl            YES
  161. #  define TclLibDir            /usr/lib
  162. #  define TclIncDir            /usr/include
  163. #  define TclLibName            tcl8.4
  164. #  define XF86SetupUsesStaticTcl    NO
  165. #  define BuildExpatLibrary        NO
  166. #  define HasExpat            YES
  167. #  define ExpatIncDirStandard        YES
  168. #  define BuildFontconfigLibrary    NO
  169. #  define HasFontconfig            YES
  170. #  define UseFontconfig            YES
  171. #  define BuildRenderLibrary        NO
  172. #  define HasRenderLibrary        YES
  173. #  define BuildXcursorLibrary        NO
  174. #  define HasXcursorLibrary        YES
  175. /* Xlib needs to know the available version of Xcursor. */
  176. #  define SharedXcursorRev        1
  177. #  define BuildXftLibrary        NO
  178. #  define HasXftLibrary            YES
  179. #  define BuildFreetype2Library        NO
  180. #  define HasFreetype2            YES
  181. #  define FontLibSharedFreeType        NO
  182. #  define HasLatex            YES
  183. #  define HasGroffHtml            YES
  184.  
  185. /*
  186.  * The XFree86 Debian package no longer builds the Xprt server, in favor
  187.  * of a separate xprint package.  We do still build the library,
  188.  * but only when we're not building servers only, so it gets built in the
  189.  * normal build, but not -dbg (as it requires libXt headers).
  190.  */
  191. #  define XprtServer            NO
  192. #  define BuildXprintLib        !BuildServersOnly
  193.  
  194. #  ifdef UseInstalled
  195. #   define RenderLibraryDir        /usr
  196. #   define XftLibraryDir        /usr
  197. #   define XcursorLibraryDir        /usr
  198. #  else /* We have a special hack to find these. */
  199. #   define RenderLibraryDir        $(TOP)/../../imports
  200. #   define XftLibraryDir        $(TOP)/../../imports
  201. #   define XcursorLibraryDir        $(TOP)/../../imports
  202. #  endif
  203.  
  204. /* Wraphelp.c magic is supplied via a custom patch. */
  205. #  define HasXdmAuth            YES
  206.  
  207. #  define HasGlide2            NO
  208. #  define HasGlide3            NO
  209.  
  210. /* Enable extended instruction set support. */
  211. #  ifdef i386Architecture
  212. #   define HasX86Support        YES
  213. #   define HasMMXSupport        YES
  214. #   define Has3DNowSupport        YES
  215. #   define HasSSESupport        YES
  216. #  endif /* i386Architecture */
  217. # endif /* DebianMaintainer */
  218.  
  219. #ifndef BinUtilsMajorVersion
  220. # define BinUtilsMajorVersion    GnuBinUtilsMajorVersion
  221. #endif
  222.  
  223. #ifndef GnuLocaleDefines
  224. # define GnuLocaleDefines    /**/
  225. #endif
  226.  
  227. #ifndef  GnuAdditionalIncludes
  228. # define GnuAdditionalIncludes    /**/
  229. #endif
  230.  
  231. #ifndef GnuGnuSourceDefines
  232. # ifdef UseInstalled
  233. #  define GnuGnuSourceDefines    /**/
  234. # else
  235. #  define GnuGnuSourceDefines    -D_GNU_SOURCE
  236. # endif
  237. #endif
  238.  
  239. # define GnuSourceDefines    -D_POSIX_C_SOURCE=199309L \
  240.                 -D_POSIX_SOURCE -D_XOPEN_SOURCE \
  241.                 -D_BSD_SOURCE -D_SVID_SOURCE \
  242.                 GnuAdditionalIncludes GnuGnuSourceDefines \
  243.                 GnuLocaleDefines
  244. # define XawI18nDefines        -DHAS_WCHAR_H -DHAS_WCTYPE_H -DNO_WIDEC_H
  245. #define HasPosixThreads         YES
  246. #define ThreadedX               YES
  247. #define HasThreadSafeAPI        YES
  248. #define ThreadsLibraries        -lpthread
  249. #define SystemMTDefines         -D_REENTRANT
  250.  
  251. #ifndef HasLibCrypt
  252. #define HasLibCrypt             YES
  253. #endif
  254. /* netscape wraps select but not poll as of communicator 4.72 */
  255. # ifndef HasPoll
  256. #  define HasPoll        NO
  257. # endif
  258.  
  259. #ifndef InstallXloadSetGID
  260. #define InstallXloadSetGID    NO
  261. #endif
  262.  
  263. #ifndef BuildIPv6
  264. #define BuildIPv6        NO
  265. #endif
  266.  
  267. #ifndef HasLinuxInput
  268. # define HasLinuxInput NO
  269. #endif
  270.  
  271. #ifndef JoystickSupport
  272. # define JoystickSupport    NO
  273. #endif
  274. #ifndef HasLinuxJoystick
  275. # define HasLinuxJoystick    NO
  276. #endif
  277.  
  278. #define LibtoolMinorVersions    YES
  279.  
  280. #ifndef HasMTRRSupport
  281. # define HasMTRRSupport    NO
  282. #endif
  283.  
  284. #ifndef XF86INT10_BUILD
  285. # define XF86INT10_BUILD    X86EMU_GENERIC
  286. #endif
  287.  
  288. #ifndef BuildXF86DRI
  289. #  define BuildXF86DRI    NO
  290. #endif
  291.  
  292. #ifndef HasAgpGart
  293. # define HasAgpGart    NO
  294. #endif
  295.  
  296. #ifndef HasSSESupport
  297. #  if defined(i386Architecture)
  298. #    define HasSSESupport        YES
  299. #  endif
  300. #endif
  301.  
  302. #ifndef HasMMXSupport
  303. #  if defined(i386Architecture)
  304. #    define HasMMXSupport        YES
  305. #  endif
  306. #endif
  307.  
  308. #ifndef Has3DNowSupport
  309. #  if defined(i386Architecture)
  310. #    define Has3DNowSupport        YES
  311. #  endif
  312. #endif
  313.  
  314. #ifndef BuildXF86RushExt
  315. # define BuildXF86RushExt    YES
  316. #endif
  317.  
  318. #ifndef LinuxFBDevSupport
  319. # define LinuxFBDevSupport    NO
  320. #endif
  321.  
  322. #define SourceDefines        GnuSourceDefines
  323.  
  324. #define BuildLibPathVar        LD_LIBRARY_PATH
  325. #define GccUsesGas        YES
  326. #define UseGas            YES
  327. #define GnuCpp            YES
  328. #ifndef HasDlopen
  329. #define HasDlopen        YES
  330. #endif
  331. #define HasWeakSymbols        YES
  332. #ifndef HasShadowPasswd
  333. #  define HasShadowPasswd    YES
  334. #endif
  335. #define HasPutenv        YES
  336. #ifndef HasShm
  337. #define HasShm            YES
  338. #endif
  339.  
  340. #ifndef HasSecureRPC
  341. # define HasSecureRPC        YES
  342. #endif
  343.  
  344. #define HasBSD44Sockets        YES
  345. #define HasSockets        YES
  346. #ifndef HasSnprintf
  347. #define HasSnprintf        YES
  348. #endif
  349. #define HasMkstemp        YES
  350. #ifndef HasGetresuid
  351. #define HasGetresuid        YES
  352. #endif
  353. #ifndef HasUsableFileMmap
  354. #define HasUsableFileMmap    YES
  355. #endif
  356. #ifndef HasNCurses
  357. #define HasNCurses        YES
  358. #endif
  359.  
  360. #ifndef HasGroff
  361. #define HasGroff        YES
  362. #endif
  363.  
  364. #ifndef HasZlib
  365. #define HasZlib            YES
  366. #endif
  367.  
  368. #ifndef HasLibpng
  369. #define HasLibpng        YES
  370. #endif
  371.  
  372. #ifndef HasExpat
  373. # define HasExpat        YES
  374. #endif
  375.  
  376. #ifndef HasFreetype2
  377. # define HasFreetype2        YES
  378. #endif
  379.  
  380. #define AvoidNullMakeCommand    YES
  381. #ifndef DebuggableLibraries
  382. #define DebuggableLibraries    NO
  383. #endif
  384. #define CompressAllFonts    YES
  385. #define Malloc0ReturnsNull    YES
  386. #define NeedConstPrototypes    YES
  387. #define NeedFunctionPrototypes    YES
  388. #define NeedNestedPrototypes    YES
  389. #define NeedVarargsPrototypes    YES
  390. #ifndef NeedWidePrototypes
  391. #define NeedWidePrototypes    NO
  392. #endif
  393. #define SetTtyGroup        YES
  394.  
  395. #ifndef UseStaticTermcapLib
  396. #define UseStaticTermcapLib    NO
  397. #endif
  398.  
  399. #ifndef HasCookieMaker
  400. #define HasCookieMaker        YES
  401. #define MkCookieCmd        mcookie
  402. #endif
  403.  
  404. #ifndef BourneShell
  405. /*
  406.  * This will cause builds/installs to terminate on errors, as on other
  407.  * platforms.
  408.  */
  409. #define BourneShell        /bin/sh -e
  410. #endif
  411.  
  412. #define MkdirHierCmd        mkdir -p
  413.  
  414. #ifndef DoLoadableServer
  415. # define DoLoadableServer    YES
  416. #endif
  417.  
  418.  
  419. #ifndef CcCmd
  420. #define CcCmd            gcc
  421. #   define CplusplusCmd        c++
  422. #endif
  423. #ifndef AsCmd
  424. #   define AsCmd        CcCmd -c -x assembler
  425. #endif
  426. #  define AsmDefines        -D__ELF__
  427. #ifndef LdCmd
  428. #   define LdCmd        CcCmd -nostdlib
  429. #  endif
  430. #  ifndef GnuUsesNcurses
  431. #    define GnuUsesNcurses    YES
  432. #endif
  433. #ifndef TermcapLibrary
  434. #if UseStaticTermcapLib
  435. #    if GnuUsesNcurses
  436. #define TermcapLibrary        StaticLibrary(/usr/lib,ncurses)
  437. #else
  438. #     define TermcapLibrary    StaticLibrary(/usr/lib/termcap,termcap)
  439. #    endif
  440. #   else
  441. #    if GnuUsesNcurses
  442. #define TermcapLibrary        -lncurses
  443. #    else
  444. #     define TermcapLibrary    -ltermcap
  445. #endif
  446. #endif
  447. #endif
  448.  
  449. /*
  450.  * Some older distros still need /lib/cpp.  There's probably a better
  451.  * test, but this handles the older Red Hat releases at least.
  452.  */
  453. #ifndef CppCmd
  454. # define CppCmd        cpp
  455. #endif
  456.  
  457. #define YaccCmd            bison -y
  458. #define LexCmd            flex -l
  459. #define HasFlex            YES
  460. #define LexLib            -lfl
  461. #define PreProcessCmd        CcCmd -E
  462. #define PostIncDir        DefaultGccIncludeDir
  463. #define LdCombineFlags        -r
  464. #ifndef LdPostLib
  465. #define LdPostLib        /* Never needed */
  466. #endif
  467. #define HasWChar32        YES
  468. #define StandardCppOptions    -traditional
  469. #define StandardCppDefines    StandardDefines
  470.  
  471. #define HasVarRun        YES
  472. #ifndef VarDbDirectory
  473. #define VarDbDirectory        $(VARDIR)/lib
  474. #endif
  475.  
  476. #ifndef OSXInputDrivers
  477. # define OSXInputDrivers1    /**/
  478. # define OSXInputDrivers2    /**/
  479. # define OSXInputDrivers    OSXInputDrivers1 OSXInputDrivers2
  480. #endif
  481.  
  482. #define HasPlugin            YES
  483. #define VendorHasX11R6_3libXext    YES    /* XC or XFree86 >= 3.3.1 */
  484.  
  485. #ifdef i386Architecture
  486. # ifndef OptimizedCDebugFlags
  487. #  define OptimizedCDebugFlags    DefaultGcc2DebugOpt DefaultGcc2OptimizeOpt GccAliasingArgs
  488. # endif
  489. # define GnuMachineDefines    -D__i386__
  490. #define ServerOSDefines        XFree86ServerOSDefines -DDDXTIME
  491. #define ServerExtraDefines    -DGCCUSESGAS XFree86ServerDefines
  492. #endif /* i386Architecture */
  493.  
  494. #ifndef StandardDefines
  495. # define StandardDefines    -DGnu GnuMachineDefines GnuSourceDefines
  496. #endif
  497.  
  498. #ifndef DlLibrary
  499. #define DlLibrary        -rdynamic -ldl
  500. #endif
  501.  
  502. #define ServerExtraSysLibs    /**/
  503.  
  504. #ifndef PamLibraries
  505. #define PamLibraries        -lpam DlLibrary
  506. #endif
  507.  
  508. #ifndef PamMiscLibraries
  509. #define PamMiscLibraries    -lpam_misc
  510. #endif
  511.  
  512. #ifndef HasDECnet
  513. #define HasDECnet        NO
  514. #endif
  515. #if HasDECnet
  516. # define ConnectionFlags    -DUNIXCONN -DTCPCONN -DDNETCONN
  517. # define ExtraLibraries        -ldnet
  518. #else
  519. #define ConnectionFlags        -DUNIXCONN -DTCPCONN
  520. #endif
  521.  
  522. #ifndef StaticLibrary
  523. #define StaticLibrary(libpath,libname) -Wl,-Bstatic Concat(-L,libpath) Concat(-l,libname) -Wl,-Bdynamic
  524. #endif
  525.  
  526. #ifndef LinkGLToUsrLib
  527. # define LinkGLToUsrLib        YES
  528. #endif
  529. # ifndef LinkGLToUsrInclude
  530. # define LinkGLToUsrInclude    YES
  531. #endif
  532.  
  533.  
  534. #define HasGnuMake    YES
  535.  
  536. #define MakeNamedTargetSubdir(dir,flags,subname)\
  537.         $(MAKE) -C dir $(MFLAGS) $(PARALLELMFLAGS) flags subname
  538.  
  539. #define ArchitectureDefines    -DGNU_ARCHITECTURE
  540.  
  541. #define TtClientLibs $(TTLIB) $(XTOOLLIB) $(XLIB)
  542. #define TtClientDepLibs $(DEPTTLIB) $(DEPXTOOLLIB) $(DEPXLIB)
  543.  
  544. #ifndef BuildDmx
  545. #define BuildDmx    YES
  546. #endif
  547.  
  548. #include <gnuLib.rules>
  549. #include <xorg.cf>
  550.  
  551. #ifndef XFree86ServerOSDefines
  552. # define XFree86ServerOSDefines
  553. #endif
  554.